<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="../assets/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="../assets/mobile/single.css?" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../assets/mobile/top.css">
<link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../assets/js/mobile/BuyRecordFun.js"></script>
<style>#wrapper{top:0px;}</style>
</head>
<body>
<div class="h5-1yyg-v1" id="loadingPicBlock">
    
<div id="ios-top-box">
	<div id="header" class="bar bar-nav">
	<div class="titlebar">
	<a href="javascript:appClose('goodspost',api);"><i class="iconfont iconline-arrow-left"></i></a>
	<h1 class="title">晒单评论</h1>
	</div>
	</div>
</div>

    <input name="hidCodeID" type="hidden" id="hidCodeID" value="18101" />
    <input name="hidIsEnd" type="hidden" id="hidIsEnd" value="1" />

    <!-- 晒单记录 -->
	<div id="wrapper">
    <section class="goodsCon">
	    <div class="cSingleCon">
			<p class="cEntry">已有<em class="orange CountShaidan">0</em>个幸运者晒单，<em class="orange aSum">0</em>条评论！</p>
	        <div id="postList" class="cSingleCon2" style="display:block;" z-minheight>
			</div>
        </div>
    </section>
     </div>

</div>
<script type="text/javascript">
apiready = function(){
	$(function(){
	var goodsSid = localData.get('goodsSid');
	if(!goodsSid){
		$.PageDialog.fail('获取数据失败');
		return;
	}
	GetJPData(config.url+'/app.php?act=goodspost&itemid='+goodsSid,{},function(data){
		if(data['status']){
			$('.CountShaidan').text(data['count']);
			$('.aSum').text(data['sum']);
			if(data['data']){
				var html = '';
				for(var i in data['data']){
				    html += '<div class="cSingleInfo">';
					html += '<dl class="fl"><a uweb="'+data['data'][i]['sd_userid']+'" href="javascript:;"><img src="'+data['data'][i]['sd_userImg']+'"><b></b></a></dl>';
					html += '<div class="cSingleR m-round" id="'+data['data'][i]['sd_id']+'">';
					html += '<ul><li><em class="blue" uweb="'+data['data'][i]['sd_userid']+'">'+data['data'][i]['sd_username']+'</em><strong>：</strong><span class="stile" itemid="'+data['data'][i]['sd_id']+'">'+data['data'][i]['sd_title']+'</span></li>';
					html += '<li><h3><b>第'+data['data'][i]['shoplist']['qishu']+'期晒单</b> '+data['data'][i]['sd_time']+'</h3></li>';
					html += '<li><p>'+data['data'][i]['sd_content']+'</p></li>';
					html += '<li class="maxImg">'+data['data'][i]['maxImg']+'</li>';
					html += '<li><dd><s></s><strong>'+data['data'][i]['sd_zhan']+'</strong>人羡慕嫉妒</dd><dd><i></i><strong>'+data['data'][i]['sd_ping']+'</strong>条评论</dd></li>';
					html += '</ul><b class="z-arrow"></b></div></div>';
				}
				$('#postList').html(html);
				
	$(".cSingleInfo li:not(:first)").bind('click',function(){
		var sd_id=$(this).parent().parent().attr('id');
		openItem('sddetail',sd_id,function(sd_id){
			localData.set('sd_id',sd_id);
		});
	});
	
	
	$('.stile').bind('click',function(){
		var sd_id = $(this).attr('itemid');
		openItem('sddetail',sd_id,function(sd_id){
			localData.set('sd_id',sd_id);
		});
	});
	$(".cSingleInfo .blue").bind('click',function(){
		var userid=$(this).attr('uweb');
		openItem('userindex',userid,function(userid){
			localData.set('userid',userid);
		});
	});
				
			}
		}else{
			$.PageDialog.fail('暂无数据');
		}
	});
			
	});
};
</script>
</body>
</html>